package com.aihna.mall.domain.bo;

import com.aihna.mall.domain.StoreBanner;
import com.aihna.common.core.validate.AddGroup;
import com.aihna.common.core.validate.EditGroup;
import com.aihna.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 店铺轮播图业务对象 vvl_store_banner
 *
 * @author Joseph.Chen
 * @date 2024-05-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = StoreBanner.class, reverseConvertGenerate = false)
public class StoreBannerBo extends BaseEntity {

    /**
     * 轮播图ID
     */
    @NotNull(message = "轮播图ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 店铺id
     */
    private Long storeId;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 链接地址
     */
    @NotBlank(message = "链接地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 图片地址
     */
    @NotBlank(message = "图片地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String image;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long sort;

    /**
     * 备注
     */
    private String description;

    /**
     * 状态，0：有效/启用；1：无效
     */
    private String status;


}
